var e = require("../../common/vendor.js"),
  r = require("../../api/ajax.js"),
  t = require("../../config/config.js");

require("../../api/service.js"), require("../../utils/luch-request/core/Request.js"),
  require("../../utils/luch-request/core/dispatchRequest.js"), require("../../utils/luch-request/adapters/index.js"),
  require("../../utils/luch-request/helpers/buildURL.js"), require("../../utils/luch-request/utils.js"),
  require("../../utils/luch-request/core/buildFullPath.js"), require("../../utils/luch-request/helpers/isAbsoluteURL.js"),
  require("../../utils/luch-request/helpers/combineURLs.js"), require("../../utils/luch-request/core/settle.js"),
  require("../../utils/luch-request/core/InterceptorManager.js"), require("../../utils/luch-request/core/mergeConfig.js"),
  require("../../utils/luch-request/core/defaults.js"), require("../../utils/luch-request/utils/clone.js"),
  require("../../uni_modules/u-store/js_sdk/Storage.js");

var u = {
  data: function () {
    return {
      value: 1,
      base: t.base,
      title: "Hello",
      infoList: {}
    };
  },
  onPullDownRefresh: function (e) {
    this.getUserInfo(!0);
  },
  onLoad: function () {
    this.getUserInfo(!1);
  },
  methods: {
    getUserInfo: function (t) {
      var u = this;
      r.doGetUrl("gallery.Category/category").then(function (r) {
        var i = r.data.data;
        u.infoList = i, t && e.index.stopPullDownRefresh();
      });
    },
    goCategory: function (r) {
      e.index.navigateTo({
        url: "/pages/gallery/category?id=" + r.category_id
      });
    },
    goDetail: function (r) {
      e.index.navigateTo({
        url: "/pages/gallery/detail?id=" + r.gallery_id
      });
    },
    gend: function () {
      e.index.navigateTo({
        url: "/pages/gallery/gd"
      });
    }
  }
};

Array || (e.resolveComponent("uv-cell") + e.resolveComponent("uv-image") + e.resolveComponent("uv-gap"))(),
  Math || (function () {
    return "../../uni_modules/uv-cell/components/uv-cell/uv-cell.js";
  } + function () {
    return "../../uni_modules/uv-image/components/uv-image/uv-image.js";
  } + function () {
    return "../../uni_modules/uv-gap/components/uv-gap/uv-gap.js";
  })();

var i = e._export_sfc(u, [
  ["render", function (r, t, u, i, s, o) {
    return {
      a: e.f(s.infoList, function (r, t, u) {
        return {
          a: e.t(r.name),
          b: e.o(function (e) {
            return o.goCategory(r);
          }),
          f: e.o(function () {
            return o.gend();
          }),
          c: "3f6ddae8-0-" + u,
          d: e.f(r.lists, function (r, t, i) {
            return {
              a: "3f6ddae8-1-" + u + "-" + i,
              b: e.p({
                width: "300rpx",
                height: "200rpx",
                src: s.base.siteUrl + r.titlepic
              }),
              c: e.t(r.title),
              d: e.o(function (e) {
                return o.goDetail(r);
              })
            };
          }),
        };
      }),
      b: e.p({
        value: "更多",
        border: !1
      }),
      c: e.p({
        height: "20"
      }),
      d: e.p({
        src: "/static/image/bottom2.png",
        width: "750rpx",
        mode: "widthFix"
      })
    };
  }]
]);

wx.createPage(i);